package com.yango.staService.client;

import com.yango.commonutil.result.Result;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author Li.Ding.yin
 * @create 2021年08月05日9:20-星期四
 * @role 微服务远程调用用户微服务
 */
@Component
@FeignClient(name = "service-user")
public interface MemberClient {

    //统计网站每日注册人数
    @ApiOperation(value = "统计网站每日注册人数")
    @GetMapping("/memberservice/member/getRegisterCount/{day}")
    public Result getRegisterCount(@ApiParam(name = "day", value = "统计日期", required = true)
                                   @PathVariable("day") String day);

    //统计网站每日登录人数
    @ApiOperation(value = "统计网站每日注册人数")
    @GetMapping("/memberservice/member/getLoginCount/{day}")
    public Result getLoginCount(@ApiParam(name = "day", value = "统计日期", required = true)
                                @PathVariable("day") String day);
}
